
<?php
/**
 * Created by PhpStorm.
 * Author: Shadow
 * Date: 2021/12/8
 * Time: 3:31 下午
 * description: app.php
 */

use think\facade\Route;

//Route::get('list','Index/list');
//Route::get('getData','Index/getData');
//Route::get('doLogin','Index/doLogin');
//Route::get('import','Index/import');


Route::group(function(){
    Route::get('login',"admin/index");
    Route::get('goodsList',"goods/index")->middleware(\app\admin\middleware\Login::class);//商品列表
    Route::any('goodsAdd',"goods/goodsAdd");//商品添加展示试图
    Route::any('goodsEditor/:id',"goods/edit");//商品添加展示试图
    Route::any('goodsUpdate',"goods/goodsUpdate");//商品修改视图展示
    Route::get('goodsDel/:id',"goods/goodsDel");//商品删除
    Route::get('goodsState/:id',"goods/goodsState");//商品状态修改
    Route::any('goodsExport',"goods/goodsExport");//商品导出
    Route::get('goodsImport',"goods/goodsImport");//商品导入
});